package top.minuy.structure.graph.representations;

/**
 * 边
 *
 * @author Minuy
 * @time 20:28
 * @date 2021/11/21
 */
public class Edge {
    public int v; // 顶点1
    public int w; // 顶点2

    public Edge(int v, int w) {
        this.v = v;
        this.w = w;
    }

    @Override
    public String toString() {
        return  v + " - " + w;
    }
}
